import Vue from 'vue'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

import {getApi,postApi} from './utils/axios'

Vue.use(ElementUI);

const ax = axios.create({
  // baseURL: 'http://localhost:3000/api/',
  // baseURL: '/api/',
  timeout: 10000,
})

Vue.prototype.$get = getApi
Vue.prototype.$post = postApi

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
